package com.zhu.service.edu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhu.service.edu.pojo.EduCourse;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhu.service.edu.pojo.vo.CourseFrontQueryVo;
import com.zhu.service.edu.pojo.vo.CoursePublishVo;
import com.zhu.service.edu.pojo.vo.CourseQueryVo;
import com.zhu.service.edu.pojo.vo.SubjectInfoFrontVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2022-07-04
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {

    IPage<EduCourse> selectPages(Page<EduCourse> page, CourseQueryVo courseQueryVo);

    CoursePublishVo getCoursePublishById(String id);

    List<EduCourse> selectFrontList(CourseFrontQueryVo courseFrontQueryVo);

    List<SubjectInfoFrontVo> findCourseIntro(String id);
}
